import Vue from 'vue'
const host = process.env.API_HOST

export const addLogoutLog = () => {
  return Vue.http.post(`${host}/m/logoutlog`)
}

export const loginlogList = (page, pageSize, fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/web/loginlog/list`, { params: { page, pageSize, fuzzy, sctime, ectime } })
}

export const loginlogCount = (fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/web/loginlog/count`, { params: { fuzzy, sctime, ectime } })
}

export const ptloginlogList = (page, pageSize, fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/m/loginlog/pt/list`, { params: { page, pageSize, fuzzy, sctime, ectime } })
}

// export const ptloginlogCount = (fuzzy = '', sctime = '', ectime = '') => {
//   return Vue.http.get(`${host}/loginlog/pt/count`, { params: { fuzzy, sctime, ectime } })
// }

export const instructionLogCount = (fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/web/log/count`, { params: { fuzzy, sctime, ectime } })
}

export const instructionLogList = (page, pageSize, fuzzy = '', sctime = '', ectime = '') => {
  return Vue.http.get(`${host}/web/log/list`, { params: { page, pageSize, fuzzy, sctime, ectime } })
}